//普通返回接口
export interface baseResponseData{
    code:number,
    data:string,
    msg:string|null
}

//获取验证码接口返回的数据类型
export interface codeResponseData{
    code:number,
    data:string,
    msg:string|null
}


//登录接口需要携带参数ts类型
export interface loginForm{
    phone:string,
    code:string
}



//登录接口返回的数据类型
export interface loginResponseData{
    code:number,
    data:userLoginInfo,
    msg:string|null
}


interface userLoginInfo{
  username:string,
  token:string,
  userId:number,
  phone:string
}

//获取用户信息返回的数据类型
export interface userResponseData{
    code:number,
    data:userInfo,
    msg:string|null
}

interface userInfo{
    id:number,
    username:string,
    avatar:string,
    gender:string,
    phone:string
}

//登录日志接口返回的数据类型
export interface loginLogsResponseData {
    code:number,
    msg:string|null,
    data:{
        pageSize:number,
        total:number,
        pages:number,
        datas:loginLogItem[],
        pageNum:number
    }
}
// 登录日志数据项类型
interface loginLogItem {
    id: number;
    username: string;
    systemType: string;
    browserType: string;
    loginTime: string;  // 日期格式：2025-02-07T18:50:50
    userId: number;
}